<?php
if (!defined('__ACCESS__'))
    exit;
?> 

		<footer>
			<?php if( $req['module'] != 'pos' ){ ?>
			<div class="f_navigation">
				<div class="container_12">
                	<div class="grid_3">
                		<h3>Contact Us</h3>
                        <ul class="f_contact">
        					<li>Balaoan, La Union</li>
        					<li>+639189650271</li>
        					<li>lvtmerchandice@yahoo.com</li>
        				</ul><!-- .f_contact -->
        			</div><!-- .grid_3 -->

        			<div class="grid_3">
        				<h3>Information</h3>
        				<nav class="f_menu">
            				<ul>
            					<li><a href="#">About Us</a></li>
            					<li><a href="#">Privacy Policy</a></li>
            					<li><a href="#">Terms &amp; Conditions</a></li>
            					<li><a href="#">Site Map</a></li>
            				</ul>
						</nav><!-- .private -->
					</div><!-- .grid_3 -->

					<div class="grid_3">
        				<h3>My Account</h3>
        				<nav class="f_menu">
            				<ul>
                                <li><a href="#">My Account</a></li>
                                <li><a href="#">Order History</a></li>
                                <li><a href="#">Wish List</a></li>
            				</ul>
        				</nav><!-- .private -->
					</div><!-- .grid_3 -->

					<div class="clear"></div>
				</div><!-- .container_12 -->
			</div><!-- .f_navigation -->
			<?php } ?>
			<hr />
			<div class="f_info">
				<div class="container_12">
					<div class="grid_6">
						<p class="copyright">LVT Merchandise, 2013-2014</p>
					</div><!-- .grid_6 -->

    				<div class="grid_6">
    					<div class="soc">
    						<a class="google" href="http://google.com"></a>
    						<a class="twitter" href="http://twitter.com"></a>
    						<a class="facebook" href="http://facebook.com"></a>
    					</div><!-- .soc -->
    				</div><!-- .grid_6 -->

					<div class="clear"></div>
				</div><!-- .container_12 -->
			</div><!-- .f_info -->
			<input type="hidden" name="linkage" />
		</footer>
		<script>
			var img_fix = function(){
    			$("img").error(function() {
    				$(this).unbind("error").attr("src", "?module=photo&get=avatar&from=login&id=99999&name=aid&ajax=true");
    			});
			};
			img_fix();
			QueryLoader.init();
			$('a').each(function(){
				if(!($(this).attr('href') === undefined) && $(this).attr('href').length > 1 && $(this).attr('href') != '#'){
    				$(this).click(function(e) {
        				link = $(this).attr('href');
						$('input[name=linkage]').val(link);
        				e.preventDefault();
        				$('.QOverlay').show();
        				var max = Math.floor((Math.random()*30)+10);
						$.cookie('prog_start', max);
        				$('.QAmt').fadeIn().attr("wd", 0 ).attr("max", max);
						setpre();
    				});
				}
			});
			var setpre = function(){
				var wd = Math.floor((Math.random()*10)+1);
				var cur = $('.QAmt').attr("wd")*1;
				var max = $('.QAmt').attr("max")*1;
				if(max >= cur){
					var addd = (cur+wd);
					if(addd > max)
						addd = max;
        			$('.QAmt').attr("wd", addd);
        			$('.QAmt').css("width", addd + "%");
					if(addd == max)
						window.location = $('input[name=linkage]').val();
        			var tickr = Math.floor((Math.random()*300)+100);
        			setTimeout(function(){setpre();},tickr);
				}
			}
			function disableF5(e) { if ((e.which || e.keyCode) == 116) e.preventDefault(); };
            $(document).bind("keydown", disableF5);
			
    		var delay = (function(){
              var timer = 0;
              return function(callback, ms){
                clearTimeout (timer);
                timer = setTimeout(callback, ms);
              };
            })();
			$(document).ready(function(){
				if($("#redirect").length != 0){
					setTimeout('redirect("' + $("#redirect").attr("url") + '")', $("#redirect").attr("timeout"));
				}
			});
            function redirect(url){
            	window.location = url;
            }
			var formatCurrency = function(num) {
				return formatCurrency(num, false);
			};
			var formatCurrency = function(num, iscomma) {
                num = isNaN(num) || num === '' || num === null ? 0.00 : num;
				if(iscomma)
					return numberWithCommas(parseFloat(num).toFixed(2));
                return parseFloat(num).toFixed(2);
            };
			var numberWithCommas = function(x) {
                var parts = x.toString().split(".");
                parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
                return parts.join(".");
            };
			var toNumber = function(x){
				return x.replace(/,/g,'') * 1;
			};
			
			var printDocument = function (contents){
				var printWin = window.open('','','left=0,top=0,width=800,height=600,toolbar=0,scrollbars=0,status  =0');
				printWin.document.write(contents);
				printWin.document.close();
				printWin.focus();
				printWin.print();
				printWin.close();
            };
			
			var convertToWordCurrency = function(value){
				var number = formatCurrency(value + "");
				if(isNaN(number))
					return "Invalid number";
					
				var point = "";
				var word = toWords(number);
				if(number.indexOf('.') > -1){
					number = number.substring(number.length,number.indexOf('.')+1);
					if(toNumber(number))
						point = "and " + number + "/100";
				}
				if(word.indexOf('point') > -1){
					word = word.substring(0, word.indexOf('point'));
				}
				
				return word + "Pesos " + point;
			};
		</script>
		<?php $this->render2(CP_BAS . 'notification/index.php'); ?>
		
	</body>
</html>